package com.example.jikeyoujikeyou.office_sz.model.base;

import com.example.jikeyoujikeyou.office_sz.model.base.BaseModel;

import java.util.Date;
/*
 * CREATE TABLE `customer` (
  `id` char(18) NOT NULL DEFAULT '' COMMENT '客户ID',
  `name` varchar(100) NOT NULL DEFAULT '' COMMENT '客户名称',
  `address` varchar(255) DEFAULT '' COMMENT '公司地址',
  `company` varchar(100) DEFAULT '' COMMENT '公司名称',
  `department` varchar(100) DEFAULT '' COMMENT '部门名称',
  `title` varchar(100) DEFAULT '' COMMENT '职位',
  `phone` varchar(20) DEFAULT '' COMMENT '座机号码',
  `creator_company_id` char(18) DEFAULT NULL COMMENT '创建者公司ID',
  `landline` varchar(15) DEFAULT '' COMMENT '手机号码',
  `creator_id` varchar(255) DEFAULT NULL COMMENT '创建者ID',
  `email` varchar(50) DEFAULT '' COMMENT '邮箱地址',
  `create_time` timestamp DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='客户信息表';
*/
public class BaseCustomer extends BaseModel {
    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.id
     *
     * @mbggenerated
     */
    private String id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.name
     *
     * @mbggenerated
     */
    private String name;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.address
     *
     * @mbggenerated
     */
    private String address;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.company
     *
     * @mbggenerated
     */
    private String company;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.department
     *
     * @mbggenerated
     */
    private String department;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.title
     *
     * @mbggenerated
     */
    private String title;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.phone
     *
     * @mbggenerated
     */
    private String phone;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.creator_company_id
     *
     * @mbggenerated
     */
    private String creatorCompanyId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.landline
     *
     * @mbggenerated
     */
    private String landline;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.creator_id
     *
     * @mbggenerated
     */
    private String creatorId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.email
     *
     * @mbggenerated
     */
    private String email;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column customer.create_time
     *
     * @mbggenerated
     */
    private String createTime;

    /**
     * 构造方法.
     *
     * @param json
     */
    public BaseCustomer(String json) {
        super(json);
    }

    public String getId() {
        if (null == id) {
            return (String) get("id");
        }
        return id;
    }

    public void setId(String id) {
        this.put("id", id);
        this.id = id;
    }

    public String getName() {
        if (null == name) {
            return (String) get("name");
        }
        return name;
    }

    public void setName(String name) {
        this.put("name", name);
        this.name = name;
    }

    public String getAddress() {
        if (null == address) {
            return (String) get("address");
        }
        return address;
    }

    public void setAddress(String address) {
        this.put("address", address);
        this.address = address;
    }

    public String getCompany() {
        if (null == company) {
            return (String) get("company");
        }
        return company;
    }

    public void setCompany(String company) {
        this.put("company", company);
        this.company = company;
    }

    public String getDepartment() {
        if (null == department) {
            return (String) get("department");
        }
        return department;
    }

    public void setDepartment(String department) {
        this.put("department", department);
        this.department = department;
    }

    public String getTitle() {
        if (null == title) {
            return (String) get("title");
        }
        return title;
    }

    public void setTitle(String title) {
        this.put("title", title);
        this.title = title;
    }

    public String getPhone() {
        if (null == phone) {
            return (String) get("phone");
        }
        return phone;
    }

    public void setPhone(String phone) {
        this.put("phone", phone);
        this.phone = phone;
    }

    public String getCreatorCompanyId() {
        if (null == creatorCompanyId) {
            return (String) get("creatorCompanyId");
        }
        return creatorCompanyId;
    }

    public void setCreatorCompanyId(String creatorCompanyId) {
        this.put("creatorCompanyId", creatorCompanyId);
        this.creatorCompanyId = creatorCompanyId;
    }

    public String getLandline() {
        if (null == landline) {
            return (String) get("landline");
        }
        return landline;
    }

    public void setLandline(String landline) {
        this.put("landline", landline);
        this.landline = landline;
    }

    public String getCreatorId() {
        if (null == creatorId) {
            return (String) get("creatorId");
        }
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.put("creatorId", creatorId);
        this.creatorId = creatorId;
    }

    public String getEmail() {
        if (null == email) {
            return (String) get("email");
        }
        return email;
    }

    public void setEmail(String email) {
        this.put("email", email);
        this.email = email;
    }

    public String getCreateTime() {
        if (null == createTime) {
            return (String) get("createTime");
        }
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.put("createTime", createTime);
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "BaseCustomer{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", company='" + company + '\'' +
                ", department='" + department + '\'' +
                ", title='" + title + '\'' +
                ", phone='" + phone + '\'' +
                ", creatorCompanyId='" + creatorCompanyId + '\'' +
                ", landline='" + landline + '\'' +
                ", creatorId='" + creatorId + '\'' +
                ", email='" + email + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}